import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'
var fywflcode = '001002'

export function spcysaveFlow(data){
  return axios({
    url: assessCheckApi.spcysaveFlow,
    method:'post' ,
    data:data?{...data,fywflcode:fywflcode?fywflcode:(data.fywflcode?data.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcyRsBhgzautoPdbhBySqsxId(params){
  return axios({
    url: assessCheckApi.spcyRsBhgzautoPdbhBySqsxId,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcyRsBhgzautoYshbhBySqsxId(params){
  return axios({
    url: assessCheckApi.spcyRsBhgzautoYshbhBySqsxId,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcygenerateZhpdConclusion(params){
  return axios({
    url: assessCheckApi.spcygenerateZhpdConclusion,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcygetZhpdbgFile(params){
  return axios({
    url: assessCheckApi.spcygetZhpdbgFile,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}

export function spcygetZhpdYshFile(params){
  return axios({
    url: assessCheckApi.spcygetZhpdYshFile,
    method:'get' ,
    params:params?{...params,fywflcode:fywflcode?fywflcode:(params.fywflcode?params.fywflcode:'')}:{},
    url_1:'outside'
  })
}


export function getWebOfficeDownloadFile(parameter) {
  return axios({
    url: assessCheckApi.getWebOfficeDownloadFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function webOfficeApiopenFile(parameter) {
  return axios({
    url:assessCheckApi.webOfficeApiopenFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function openFileReadOnly(parameter) {
  return axios({
    url:assessCheckApi.openFileReadOnly,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function getDocxToPdf(parameter) {
  return axios({
    url:assessCheckApi.getDocxToPdf,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function againEditPdfOnlineFile(parameter) {
  return axios({
    url:assessCheckApi.againEditPdfOnlineFile,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
export function getDocxToPdfAndGz(parameter) {
  return axios({
    url:assessCheckApi.getDocxToPdfAndGz,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function pdfFileHcCa(parameter) {
  return axios({
    url:assessCheckApi.pdfFileHcCa,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function initWjgetZhpdBgsDjwc(parameter) {
  return axios({
    url:assessCheckApi.initWjgetZhpdBgsDjwc,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function initWjgetZhpdBgsCxbj(parameter) {
  return axios({
    url:assessCheckApi.initWjgetZhpdBgsCxbj,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}



export function initWjgetZhpdBgsState(parameter) {
  return axios({
    url:assessCheckApi.initWjgetZhpdBgsState,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function initWjxcjcbgQz(parameter) {
  return axios({
    url:assessCheckApi.initWjxcjcbgQz,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function initWjfqqxtz(parameter) {
  return axios({
    url:assessCheckApi.initWjfqqxtz,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function initWjfqqxtzWc(parameter) {
  return axios({
    url:assessCheckApi.initWjfqqxtzWc,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function spcyjcqxtzMlList(parameter) {
  return axios({
    url:assessCheckApi.spcyjcqxtzMlList,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function spcySqsxWjjlgetLocalFileById(params){
  return axios({
    url: assessCheckApi.spcySqsxWjjlgetLocalFileById,
    method:'get' ,
    params:params,
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}

export function initWjyzjcbgQz(parameter) {
  return axios({
    url:assessCheckApi.initWjyzjcbgQz,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}

export function spcyuploadSqsxFile(params){
  return axios({
    url: assessCheckApi.spcyuploadSqsxFile,
    method:'post' ,
    data:params,
    url_1:'outside'
  })
}

export function spcySqsxWjjldeleteFileById(params){
  return axios({
    url: assessCheckApi.spcySqsxWjjldeleteFileById,
    method:'delete' ,
    params:params,
    url_1:'outside'
  })
}

export function spcyzgpdbgml(parameter) {
  return axios({
    url:assessCheckApi.spcyzgpdbgml,
    method: 'get',
    params: parameter,
    url_1:'outside'
  })
}
